package com.yf1706.dao.jpa;


import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.yf1706.bean.EmpEducationHistory;

public interface IEmpEducationHistoryJDAO extends CrudRepository<EmpEducationHistory, Integer>{
	public EmpEducationHistory findById(int Id);
	
	//根据员工编号查找员工的教育履历对象集合
	@Query("select eeh from EmpEducationHistory eeh where eeh.emp.empId=:empId order by eeh.beginDate desc")
	public List<EmpEducationHistory> findByEmpId(@Param("empId")int empId);
}
